The purpose of this segment is to share some of our favorite tools for working with data in R. We will focus on packages that are less popular than the Greatest of All Times (e.g. tidyverse and its associated ggplot2, dplyr, tidyr, etc.) though we highly encourage you to check these out!
here: no more getting lost in file pathsAs we introduced in the previous module, here is an excellent package that’s worth getting to know because it will let you use relative as opposed to absolute pathnames. This will simplify importing and exporting files as well as sharing them with others.
install.packages("here")
library(here)
## here() starts at C:/Users/sbrei/Documents/R_Projects/Collabs/BGSS_Retreat_2021
here::here() # once you call the package with the library(here) call, you can use this function to remind you where your project root begins.
## [1] "C:/Users/sbrei/Documents/R_Projects/Collabs/BGSS_Retreat_2021"
revisit “here” package description
Artwork by Allison Horst
magrittr: these pipes will make your work flowpatchwork: make your figures nice and cozyperformance: evaluate your general linear models in a flashPlease take 5 minutes and give us some feedback about today’s workshop- we’d be so grateful! Check out the “Feedback Page” link below. Thanks!